package com.example.demo.mapper;

import com.example.demo.entity.Furniture;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface furnituremapper {
    //家具分页查询功能
    List<Furniture> page(int page, int size, String query);
    //条件查询
    List<Furniture> search(String query);
    //添加家具
    int add(Furniture furniture);
    //更新家具
    int updateFurniture(Furniture furniture);
}
